﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Server.Util;
using Server.Models;
using System.Data;

namespace Server.InvoiceService
{
    public class InvoiceDAL
    {
        DBUtil dbCtrl = new DBUtil();
        public DataTable GetDevice(int id)
        {
            try
            {
                string sqlstr = " select * from Manage_DeviceInfo where id = " + id;
                var dt = dbCtrl.Query(sqlstr);
                return dt;
            }
            catch (Exception)
            {

                throw;
            }
        }
    }
}
